package com.dm.cloud.file.controller.defalut;

import com.dm.cloud.tkmybatis.service.BaseEntityService;
import com.dm.cloud.tkmybatis.service.EntityBaseController;
import io.swagger.v3.oas.annotations.tags.Tag;
import com.dm.cloud.file.common.po.FileLog;
import com.dm.cloud.file.common.dto.FileLogDTO;
import com.dm.cloud.file.common.request.FileLogSearchRequest;
import com.dm.cloud.file.service.FileLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
   * @author hcx
   * @type FileLogController.java
   * @desc 文件服务日志 FileLog controller
   */
@RestController
@RequestMapping("/apis/v1/fileLog")
@Tag(name =  "文件服务日志  FileLogcontroller")

public class FileLogController extends EntityBaseController<FileLogSearchRequest, FileLog, FileLogDTO> {


    @Autowired
    private FileLogService fileLogService;
    @Override
    public FileLog getEntity() {
        return new FileLog();
    }

    @Override
    public FileLogDTO getDTO() {
        return new FileLogDTO();
    }
    @Override
    public BaseEntityService<FileLogSearchRequest, FileLog> getService() {
        return fileLogService;
    }


}
